// Copyright 2010 Alexandre Tristan St-Cyr <tristan.stcyr@gmail.com>

package com.codeplex.loadjava;
import java.sql.SQLException;

public class JavaLoader {
	
	private IJavaLoaderSettings settings;
	
	JavaLoader(IJavaLoaderSettings settings)
	{
		this.settings = settings;
	}
	
	public void load() throws SQLException
	{
		IJavaRepository repository = new JavaRepository(settings);
		
		JavaRepositoryLoader repositoryLoader =  
			new JavaRepositoryLoader(repository, settings);
		repositoryLoader.load();
	}
}
